<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>下拉选择多选 SksSelectMultipleByLookupService | sksPluginElErp</title>
    <meta name="generator" content="VuePress 1.9.7">
    <link rel="icon" href="https://talk.gitee.com/search/resources/images/logo.svg?20200207">
    <meta name="description" content="Vue 驱动的静态网站生成器">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <meta name="keywords" content="Sks框架,JavaScript,js,ES6,TypeScript,vue,python,css3,html5,Node,git,github,markdown">
    <meta name="themeBak-color" content="#11a8cd">
    
    <link rel="preload" href="/assets/css/0.styles.9ea0c970.css" as="style"><link rel="preload" href="/assets/js/app.321f2bf8.js" as="script"><link rel="preload" href="/assets/js/2.a5e5ef97.js" as="script"><link rel="preload" href="/assets/js/14.e09832a5.js" as="script"><link rel="prefetch" href="/assets/js/10.89292fb0.js"><link rel="prefetch" href="/assets/js/11.1d8a964b.js"><link rel="prefetch" href="/assets/js/12.dd1b5a6e.js"><link rel="prefetch" href="/assets/js/13.c006e013.js"><link rel="prefetch" href="/assets/js/15.d10ea6e3.js"><link rel="prefetch" href="/assets/js/16.20e60327.js"><link rel="prefetch" href="/assets/js/17.56995e59.js"><link rel="prefetch" href="/assets/js/18.433fb3d1.js"><link rel="prefetch" href="/assets/js/3.11e09eaa.js"><link rel="prefetch" href="/assets/js/4.0499b603.js"><link rel="prefetch" href="/assets/js/5.e4a1c443.js"><link rel="prefetch" href="/assets/js/6.6bc77299.js"><link rel="prefetch" href="/assets/js/7.a3f63cd4.js"><link rel="prefetch" href="/assets/js/8.f59d3119.js"><link rel="prefetch" href="/assets/js/9.00518440.js">
    <link rel="stylesheet" href="/assets/css/0.styles.9ea0c970.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">sksPluginElErp</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/sksPluginElErp/10.介绍/01.translation.html" class="nav-link">
  elErp扩展
</a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/sksPluginElErp/10.介绍/01.translation.html" class="nav-link">
  elErp扩展
</a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>介绍</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/sksPluginElErp/10.介绍/01.translation.html" class="sidebar-link">translation</a></li><li><a href="/sksPluginElErp/10.介绍/90.常见错误.html" class="sidebar-link">常见错误</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>工具包方法</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/sksPluginElErp/20.工具包方法/01.常用.html" class="sidebar-link">常用</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>封装组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/sksPluginElErp/30.封装组件/10.Button按钮.html" class="sidebar-link">Button按钮</a></li><li><a href="/sksPluginElErp/30.封装组件/20.DateTime时间日期选择.html" class="sidebar-link">DateTime时间日期选择</a></li><li><a href="/sksPluginElErp/30.封装组件/80.SksSelectSingleByLookupController下拉选择单选.html" class="sidebar-link">SksSelectSingleByLookupController下拉选择单选</a></li><li><a href="/sksPluginElErp/30.封装组件/81.SksSelectMultipleByLookupService下拉选择多选.html" class="active sidebar-link">SksSelectMultipleByLookupService下拉选择多选</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/sksPluginElErp/30.封装组件/81.SksSelectMultipleByLookupService下拉选择多选.html#简单使用" class="sidebar-link">简单使用</a></li><li class="sidebar-sub-header"><a href="/sksPluginElErp/30.封装组件/81.SksSelectMultipleByLookupService下拉选择多选.html#选项已不再显示" class="sidebar-link">选项已不再显示</a></li></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>页面处理</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/sksPluginElErp/40.页面处理/10.对话框.html" class="sidebar-link">对话框</a></li><li><a href="/sksPluginElErp/40.页面处理/20.主页列表.html" class="sidebar-link">主页列表</a></li><li><a href="/sksPluginElErp/40.页面处理/21.sksTable列表.html" class="sidebar-link">sksTable列表</a></li><li><a href="/sksPluginElErp/40.页面处理/30.SksTableQueryFormEl列表过滤.html" class="sidebar-link">SksTableQueryFormEl列表过滤</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="下拉选择多选-sksselectmultiplebylookupservice"><a href="#下拉选择多选-sksselectmultiplebylookupservice" class="header-anchor">#</a> 下拉选择多选 SksSelectMultipleByLookupService</h1> <p>通过远程获取下拉选项</p> <h2 id="简单使用"><a href="#简单使用" class="header-anchor">#</a> 简单使用</h2> <div class="demo-block demo-zh-CN demo-81.SksSelectMultipleByLookupService%E4%B8%8B%E6%8B%89%E9%80%89%E6%8B%A9%E5%A4%9A%E9%80%89.html" data-v-47d1da0a><div class="demo-content" data-v-47d1da0a><div><div><el-form><el-row><el-col span="12"><el-form-item prop="personIdList" label="人员ID">
                        
                    </el-form-item></el-col></el-row> <el-form-item prop="personIdList" label="人员"><SksSelectMultipleByLookupController queryParams="[object Object]" request-url="/mockData/30.81.a" formData="[object Object]" prop-name="personIdList" valueType="string" option-key="personId" option-label="description" option-disabled-func="function (item) {
              return item.status == 1;
            }"></SksSelectMultipleByLookupController></el-form-item> <el-form-item></el-form-item></el-form></div></div></div> <div class="meta" data-v-47d1da0a><!----> <div class="code-content" data-v-47d1da0a><div class="language-html extra-class" data-v-47d1da0a><pre class="language-html" data-v-47d1da0a><code data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>template</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>div</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
        <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-row</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-col</span> <span class="token attr-name" data-v-47d1da0a>:span</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>12<span class="token punctuation" data-v-47d1da0a>&quot;</span></span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form-item</span> <span class="token attr-name" data-v-47d1da0a>prop</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>personIdList<span class="token punctuation" data-v-47d1da0a>&quot;</span></span> <span class="token attr-name" data-v-47d1da0a>label</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>人员ID<span class="token punctuation" data-v-47d1da0a>&quot;</span></span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                        {{form.personIdList}}
                    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-col</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-row</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form-item</span> <span class="token attr-name" data-v-47d1da0a>prop</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>personIdList<span class="token punctuation" data-v-47d1da0a>&quot;</span></span> <span class="token attr-name" data-v-47d1da0a>label</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>人员<span class="token punctuation" data-v-47d1da0a>&quot;</span></span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>SksSelectMultipleByLookupController</span>
                        <span class="token attr-name" data-v-47d1da0a>:queryParams</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>{}<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>:request-url</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>urlPath<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>:formData</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>form<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>prop-name</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>personIdList<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>valueType</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>string<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>option-key</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>personId<span class="token punctuation" data-v-47d1da0a>&quot;</span></span> <span class="token attr-name" data-v-47d1da0a>option-label</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>description<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>:option-disabled-func</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>(item)=&gt;item.status == 1<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                <span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>SksSelectMultipleByLookupController</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
        <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>div</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
<span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>template</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
<span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>script</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span><span class="token script" data-v-47d1da0a><span class="token language-javascript" data-v-47d1da0a>
    <span class="token comment" data-v-47d1da0a>//在vuepress中使用 import会报错</span>
    <span class="token keyword" data-v-47d1da0a>const</span> Mock<span class="token operator" data-v-47d1da0a>=</span><span class="token function" data-v-47d1da0a>require</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token string" data-v-47d1da0a>'mockjs'</span><span class="token punctuation" data-v-47d1da0a>)</span>
    <span class="token keyword" data-v-47d1da0a>export</span> <span class="token keyword" data-v-47d1da0a>default</span> <span class="token punctuation" data-v-47d1da0a>{</span>
        <span class="token function" data-v-47d1da0a>data</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>)</span> <span class="token punctuation" data-v-47d1da0a>{</span>
            <span class="token keyword" data-v-47d1da0a>return</span> <span class="token punctuation" data-v-47d1da0a>{</span>
                <span class="token literal-property property" data-v-47d1da0a>urlPath</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token template-string" data-v-47d1da0a><span class="token template-punctuation string" data-v-47d1da0a>`</span><span class="token string" data-v-47d1da0a>/mockData/30.81.a</span><span class="token template-punctuation string" data-v-47d1da0a>`</span></span><span class="token punctuation" data-v-47d1da0a>,</span>
                <span class="token literal-property property" data-v-47d1da0a>form</span><span class="token operator" data-v-47d1da0a>:</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    <span class="token literal-property property" data-v-47d1da0a>personIdList</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token keyword" data-v-47d1da0a>undefined</span><span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token literal-property property" data-v-47d1da0a>personName</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token keyword" data-v-47d1da0a>undefined</span><span class="token punctuation" data-v-47d1da0a>,</span>
                <span class="token punctuation" data-v-47d1da0a>}</span>
            <span class="token punctuation" data-v-47d1da0a>}</span>
        <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>,</span>
        <span class="token function" data-v-47d1da0a>created</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>)</span><span class="token punctuation" data-v-47d1da0a>{</span>
            <span class="token keyword" data-v-47d1da0a>this</span><span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>initMockRequest</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>)</span>
        <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>,</span>
        <span class="token literal-property property" data-v-47d1da0a>methods</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token punctuation" data-v-47d1da0a>{</span>
            <span class="token function" data-v-47d1da0a>initMockRequest</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>)</span><span class="token punctuation" data-v-47d1da0a>{</span>
                <span class="token comment" data-v-47d1da0a>//制造测试数据</span>
                <span class="token keyword" data-v-47d1da0a>let</span> mock <span class="token operator" data-v-47d1da0a>=</span> Mock<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>mock</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    <span class="token string-property property" data-v-47d1da0a>'list|100'</span><span class="token operator" data-v-47d1da0a>:</span><span class="token punctuation" data-v-47d1da0a>[</span><span class="token punctuation" data-v-47d1da0a>{</span>
                        <span class="token literal-property property" data-v-47d1da0a>personId</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token string" data-v-47d1da0a>'@id'</span><span class="token punctuation" data-v-47d1da0a>,</span>
                        <span class="token literal-property property" data-v-47d1da0a>description</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token string" data-v-47d1da0a>'@cname'</span><span class="token punctuation" data-v-47d1da0a>,</span>
                        <span class="token string-property property" data-v-47d1da0a>'age|-30-30'</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token number" data-v-47d1da0a>23</span><span class="token punctuation" data-v-47d1da0a>,</span>
                        <span class="token string-property property" data-v-47d1da0a>'job|1'</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token punctuation" data-v-47d1da0a>[</span><span class="token string" data-v-47d1da0a>'前端工程师'</span><span class="token punctuation" data-v-47d1da0a>,</span> <span class="token string" data-v-47d1da0a>'后端工程师'</span><span class="token punctuation" data-v-47d1da0a>,</span> <span class="token string" data-v-47d1da0a>'UI工程师'</span><span class="token punctuation" data-v-47d1da0a>,</span> <span class="token string" data-v-47d1da0a>'需求工程师'</span><span class="token punctuation" data-v-47d1da0a>]</span><span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>]</span><span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token literal-property property" data-v-47d1da0a>total</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token number" data-v-47d1da0a>100</span><span class="token punctuation" data-v-47d1da0a>,</span>
                <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>)</span><span class="token punctuation" data-v-47d1da0a>;</span>
                console<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>log</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token string" data-v-47d1da0a>&quot;mockPage&quot;</span><span class="token punctuation" data-v-47d1da0a>,</span>mock<span class="token punctuation" data-v-47d1da0a>)</span>
                <span class="token keyword" data-v-47d1da0a>try</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    <span class="token keyword" data-v-47d1da0a>this</span><span class="token punctuation" data-v-47d1da0a>.</span>sksUtils<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>initListVueVirtualUUID</span><span class="token punctuation" data-v-47d1da0a>(</span>mock<span class="token punctuation" data-v-47d1da0a>.</span>list<span class="token punctuation" data-v-47d1da0a>)</span>
                <span class="token punctuation" data-v-47d1da0a>}</span><span class="token keyword" data-v-47d1da0a>catch</span><span class="token punctuation" data-v-47d1da0a>(</span>e<span class="token punctuation" data-v-47d1da0a>)</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    console<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>warn</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token string" data-v-47d1da0a>&quot;初始化模拟数据mock.list出错&quot;</span><span class="token punctuation" data-v-47d1da0a>)</span>
                    console<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>warn</span><span class="token punctuation" data-v-47d1da0a>(</span>e<span class="token punctuation" data-v-47d1da0a>)</span>
                <span class="token punctuation" data-v-47d1da0a>}</span>
                <span class="token keyword" data-v-47d1da0a>this</span><span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>addSuccessController</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    <span class="token literal-property property" data-v-47d1da0a>path</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token keyword" data-v-47d1da0a>this</span><span class="token punctuation" data-v-47d1da0a>.</span>urlPath<span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token literal-property property" data-v-47d1da0a>result</span><span class="token operator" data-v-47d1da0a>:</span> mock<span class="token punctuation" data-v-47d1da0a>,</span>
                <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>)</span>
            <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>,</span>
        <span class="token punctuation" data-v-47d1da0a>}</span>
    <span class="token punctuation" data-v-47d1da0a>}</span>
</span></span><span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>script</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
</code></pre></div></div></div> <div class="demo-block-control" style="width:unset;" data-v-47d1da0a><i class="caret-bottom icon" data-v-47d1da0a data-v-47d1da0a></i> <span style="display:none;" data-v-47d1da0a data-v-47d1da0a>显示代码</span> <span class="copy-action" style="display:;" data-v-47d1da0a>复制代码</span> <span class="copy-action copy-action-success" style="display:none;" data-v-47d1da0a data-v-47d1da0a>复制代码</span></div></div><h2 id="选项已不再显示"><a href="#选项已不再显示" class="header-anchor">#</a> 选项已不再显示</h2> <p>在关联中,例如用户已被禁用,获取的下拉列表不存在,但是关联数据实际上是存在的</p> <p>使用 valueRowList 将关联数据合并进下拉list中展示</p> <div class="demo-block demo-zh-CN demo-81.SksSelectMultipleByLookupService%E4%B8%8B%E6%8B%89%E9%80%89%E6%8B%A9%E5%A4%9A%E9%80%89.html" data-v-47d1da0a><div class="demo-content" data-v-47d1da0a><div><div><el-form><el-row><el-col span="12"><el-form-item prop="personIdList" label="人员ID">
                        [
  1,
  2
]
                    </el-form-item></el-col> <el-col span="12"><el-form-item label="viPersonList">
                        [
  {
    &quot;personId&quot;: 1,
    &quot;description&quot;: &quot;用户1&quot;
  },
  {
    &quot;personId&quot;: 2,
    &quot;description&quot;: &quot;用户2&quot;
  }
]
                    </el-form-item></el-col></el-row> <el-form-item prop="personId" label="人员"><SksSelectMultipleByLookupController queryParams="[object Object]" request-url="/mockData/30.81.b" formData="[object Object]" prop-name="personIdList" valueType="string" option-key="personId" option-label="description" option-disabled-func="function (item) {
              return item.status == 1;
            }" value-row-list="[object Object],[object Object]"></SksSelectMultipleByLookupController></el-form-item> <el-form-item></el-form-item></el-form></div></div></div> <div class="meta" data-v-47d1da0a><!----> <div class="code-content" data-v-47d1da0a><div class="language-html extra-class" data-v-47d1da0a><pre class="language-html" data-v-47d1da0a><code data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>template</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>div</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
        <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-row</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-col</span> <span class="token attr-name" data-v-47d1da0a>:span</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>12<span class="token punctuation" data-v-47d1da0a>&quot;</span></span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form-item</span> <span class="token attr-name" data-v-47d1da0a>prop</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>personIdList<span class="token punctuation" data-v-47d1da0a>&quot;</span></span> <span class="token attr-name" data-v-47d1da0a>label</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>人员ID<span class="token punctuation" data-v-47d1da0a>&quot;</span></span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                        {{form.personIdList}}
                    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-col</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-col</span> <span class="token attr-name" data-v-47d1da0a>:span</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>12<span class="token punctuation" data-v-47d1da0a>&quot;</span></span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form-item</span>  <span class="token attr-name" data-v-47d1da0a>label</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>viPersonList<span class="token punctuation" data-v-47d1da0a>&quot;</span></span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                        {{form.viPersonList}}
                    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-col</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-row</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form-item</span> <span class="token attr-name" data-v-47d1da0a>prop</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>personId<span class="token punctuation" data-v-47d1da0a>&quot;</span></span> <span class="token attr-name" data-v-47d1da0a>label</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>人员<span class="token punctuation" data-v-47d1da0a>&quot;</span></span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>SksSelectMultipleByLookupController</span>
                        <span class="token attr-name" data-v-47d1da0a>:queryParams</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>{}<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>:request-url</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>urlPath<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>:formData</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>form<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>prop-name</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>personIdList<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>valueType</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>string<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>option-key</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>personId<span class="token punctuation" data-v-47d1da0a>&quot;</span></span> <span class="token attr-name" data-v-47d1da0a>option-label</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>description<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>:option-disabled-func</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>(item)=&gt;item.status == 1<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                        <span class="token attr-name" data-v-47d1da0a>:value-row-list</span><span class="token attr-value" data-v-47d1da0a><span class="token punctuation attr-equals" data-v-47d1da0a>=</span><span class="token punctuation" data-v-47d1da0a>&quot;</span>form.viPersonList<span class="token punctuation" data-v-47d1da0a>&quot;</span></span>
                <span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
                <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>SksSelectMultipleByLookupController</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
            <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form-item</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
        <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>el-form</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
    <span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>div</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
<span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>template</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
<span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;</span>script</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span><span class="token script" data-v-47d1da0a><span class="token language-javascript" data-v-47d1da0a>
    <span class="token comment" data-v-47d1da0a>//在vuepress中使用 import会报错</span>
    <span class="token keyword" data-v-47d1da0a>const</span> Mock<span class="token operator" data-v-47d1da0a>=</span><span class="token function" data-v-47d1da0a>require</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token string" data-v-47d1da0a>'mockjs'</span><span class="token punctuation" data-v-47d1da0a>)</span>
    <span class="token keyword" data-v-47d1da0a>export</span> <span class="token keyword" data-v-47d1da0a>default</span> <span class="token punctuation" data-v-47d1da0a>{</span>
        <span class="token function" data-v-47d1da0a>data</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>)</span> <span class="token punctuation" data-v-47d1da0a>{</span>
            <span class="token keyword" data-v-47d1da0a>return</span> <span class="token punctuation" data-v-47d1da0a>{</span>
                <span class="token literal-property property" data-v-47d1da0a>urlPath</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token template-string" data-v-47d1da0a><span class="token template-punctuation string" data-v-47d1da0a>`</span><span class="token string" data-v-47d1da0a>/mockData/30.81.b</span><span class="token template-punctuation string" data-v-47d1da0a>`</span></span><span class="token punctuation" data-v-47d1da0a>,</span>
                <span class="token literal-property property" data-v-47d1da0a>form</span><span class="token operator" data-v-47d1da0a>:</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    <span class="token literal-property property" data-v-47d1da0a>personIdList</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token punctuation" data-v-47d1da0a>[</span><span class="token number" data-v-47d1da0a>1</span><span class="token punctuation" data-v-47d1da0a>,</span><span class="token number" data-v-47d1da0a>2</span><span class="token punctuation" data-v-47d1da0a>]</span><span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token literal-property property" data-v-47d1da0a>personName</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token keyword" data-v-47d1da0a>undefined</span><span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token literal-property property" data-v-47d1da0a>viPersonList</span><span class="token operator" data-v-47d1da0a>:</span><span class="token punctuation" data-v-47d1da0a>[</span>
                        <span class="token punctuation" data-v-47d1da0a>{</span>
                            <span class="token literal-property property" data-v-47d1da0a>personId</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token number" data-v-47d1da0a>1</span><span class="token punctuation" data-v-47d1da0a>,</span>
                            <span class="token literal-property property" data-v-47d1da0a>description</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token string" data-v-47d1da0a>'用户1'</span>
                        <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>,</span>
                        <span class="token punctuation" data-v-47d1da0a>{</span>
                            <span class="token literal-property property" data-v-47d1da0a>personId</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token number" data-v-47d1da0a>2</span><span class="token punctuation" data-v-47d1da0a>,</span>
                            <span class="token literal-property property" data-v-47d1da0a>description</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token string" data-v-47d1da0a>'用户2'</span>
                        <span class="token punctuation" data-v-47d1da0a>}</span>
                    <span class="token punctuation" data-v-47d1da0a>]</span>
                <span class="token punctuation" data-v-47d1da0a>}</span>
            <span class="token punctuation" data-v-47d1da0a>}</span>
        <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>,</span>
        <span class="token function" data-v-47d1da0a>created</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>)</span><span class="token punctuation" data-v-47d1da0a>{</span>
            <span class="token keyword" data-v-47d1da0a>this</span><span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>initMockRequest</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>)</span>
        <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>,</span>
        <span class="token literal-property property" data-v-47d1da0a>methods</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token punctuation" data-v-47d1da0a>{</span>
            <span class="token function" data-v-47d1da0a>initMockRequest</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>)</span><span class="token punctuation" data-v-47d1da0a>{</span>
                <span class="token comment" data-v-47d1da0a>//制造测试数据</span>
                <span class="token keyword" data-v-47d1da0a>let</span> mock <span class="token operator" data-v-47d1da0a>=</span> Mock<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>mock</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    <span class="token string-property property" data-v-47d1da0a>'list|100'</span><span class="token operator" data-v-47d1da0a>:</span><span class="token punctuation" data-v-47d1da0a>[</span><span class="token punctuation" data-v-47d1da0a>{</span>
                        <span class="token literal-property property" data-v-47d1da0a>personId</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token string" data-v-47d1da0a>'@id'</span><span class="token punctuation" data-v-47d1da0a>,</span>
                        <span class="token literal-property property" data-v-47d1da0a>description</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token string" data-v-47d1da0a>'@cname'</span><span class="token punctuation" data-v-47d1da0a>,</span>
                        <span class="token string-property property" data-v-47d1da0a>'age|-30-30'</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token number" data-v-47d1da0a>23</span><span class="token punctuation" data-v-47d1da0a>,</span>
                        <span class="token string-property property" data-v-47d1da0a>'job|1'</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token punctuation" data-v-47d1da0a>[</span><span class="token string" data-v-47d1da0a>'前端工程师'</span><span class="token punctuation" data-v-47d1da0a>,</span> <span class="token string" data-v-47d1da0a>'后端工程师'</span><span class="token punctuation" data-v-47d1da0a>,</span> <span class="token string" data-v-47d1da0a>'UI工程师'</span><span class="token punctuation" data-v-47d1da0a>,</span> <span class="token string" data-v-47d1da0a>'需求工程师'</span><span class="token punctuation" data-v-47d1da0a>]</span><span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>]</span><span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token literal-property property" data-v-47d1da0a>total</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token number" data-v-47d1da0a>100</span><span class="token punctuation" data-v-47d1da0a>,</span>
                <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>)</span><span class="token punctuation" data-v-47d1da0a>;</span>
                console<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>log</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token string" data-v-47d1da0a>&quot;mockPage&quot;</span><span class="token punctuation" data-v-47d1da0a>,</span>mock<span class="token punctuation" data-v-47d1da0a>)</span>
                <span class="token keyword" data-v-47d1da0a>try</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    <span class="token keyword" data-v-47d1da0a>this</span><span class="token punctuation" data-v-47d1da0a>.</span>sksUtils<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>initListVueVirtualUUID</span><span class="token punctuation" data-v-47d1da0a>(</span>mock<span class="token punctuation" data-v-47d1da0a>.</span>list<span class="token punctuation" data-v-47d1da0a>)</span>
                <span class="token punctuation" data-v-47d1da0a>}</span><span class="token keyword" data-v-47d1da0a>catch</span><span class="token punctuation" data-v-47d1da0a>(</span>e<span class="token punctuation" data-v-47d1da0a>)</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    console<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>warn</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token string" data-v-47d1da0a>&quot;初始化模拟数据mock.list出错&quot;</span><span class="token punctuation" data-v-47d1da0a>)</span>
                    console<span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>warn</span><span class="token punctuation" data-v-47d1da0a>(</span>e<span class="token punctuation" data-v-47d1da0a>)</span>
                <span class="token punctuation" data-v-47d1da0a>}</span>
                <span class="token keyword" data-v-47d1da0a>this</span><span class="token punctuation" data-v-47d1da0a>.</span><span class="token function" data-v-47d1da0a>addSuccessController</span><span class="token punctuation" data-v-47d1da0a>(</span><span class="token punctuation" data-v-47d1da0a>{</span>
                    <span class="token literal-property property" data-v-47d1da0a>path</span><span class="token operator" data-v-47d1da0a>:</span> <span class="token keyword" data-v-47d1da0a>this</span><span class="token punctuation" data-v-47d1da0a>.</span>urlPath<span class="token punctuation" data-v-47d1da0a>,</span>
                    <span class="token literal-property property" data-v-47d1da0a>result</span><span class="token operator" data-v-47d1da0a>:</span> mock<span class="token punctuation" data-v-47d1da0a>,</span>
                <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>)</span>
            <span class="token punctuation" data-v-47d1da0a>}</span><span class="token punctuation" data-v-47d1da0a>,</span>
        <span class="token punctuation" data-v-47d1da0a>}</span>
    <span class="token punctuation" data-v-47d1da0a>}</span>
</span></span><span class="token tag" data-v-47d1da0a><span class="token tag" data-v-47d1da0a><span class="token punctuation" data-v-47d1da0a>&lt;/</span>script</span><span class="token punctuation" data-v-47d1da0a>&gt;</span></span>
</code></pre></div></div></div> <div class="demo-block-control" style="width:unset;" data-v-47d1da0a><i class="caret-bottom icon" data-v-47d1da0a data-v-47d1da0a></i> <span style="display:none;" data-v-47d1da0a data-v-47d1da0a>显示代码</span> <span class="copy-action" style="display:;" data-v-47d1da0a>复制代码</span> <span class="copy-action copy-action-success" style="display:none;" data-v-47d1da0a data-v-47d1da0a>复制代码</span></div></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">最后更新时间:</span> <span class="time">2022/11/2 17:53:53</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="/sksPluginElErp/30.封装组件/80.SksSelectSingleByLookupController下拉选择单选.html" class="prev">
        SksSelectSingleByLookupController下拉选择单选
      </a></span> <span class="next"><a href="/sksPluginElErp/40.页面处理/10.对话框.html">
        对话框
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
    <script src="/assets/js/app.321f2bf8.js" defer></script><script src="/assets/js/2.a5e5ef97.js" defer></script><script src="/assets/js/14.e09832a5.js" defer></script>
  </body>
</html>
